package sjtu.ist.warehouse4ws.model;

import java.util.HashSet;
import java.util.Set;

/**
 * ShiroPermission entity. @author MyEclipse Persistence Tools
 */

public class ShiroPermission implements java.io.Serializable {

	// Fields

	private Integer permissionId;
	private String permission;
	private Set<ShiroRole> shiroRole = new HashSet<ShiroRole>();

	// Constructors

	/** default constructor */
	public ShiroPermission() {
	}

	/** full constructor */
	public ShiroPermission(String permission, Set shiroRole) {
		this.permission = permission;
		this.shiroRole= shiroRole;
	}

	// Property accessors

	public Integer getPermissionId() {
		return this.permissionId;
	}

	public void setPermissionId(Integer permissionId) {
		this.permissionId = permissionId;
	}

	public String getPermission() {
		return this.permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}



	public Set<ShiroRole> getShiroRole() {
		return shiroRole;
	}

	public void setShiroRole(Set<ShiroRole> shiroRole) {
		this.shiroRole = shiroRole;
	}

}